﻿using UnityEngine;
using System.Collections;
using System;

public class Huge_UI : MonoBehaviour {

	GameObject[] UI;
	Animator anim;

	// Use this for initialization
	void Awake () {

		UI = GameObject.FindGameObjectsWithTag ("UI");
	}
	void OnMouseDown()
	{
		killThemAll ();
	}

	public void killThemAll ()
	{
		foreach (GameObject button in UI) 
		{
			try{ button.gameObject.GetComponent<Animator> ().SetBool ("intro", false);}
			catch (Exception e) {
				print(e);
			} 
		}
	}
}
